package com.sudo.api._admin;

import com.sudo.common.controller.BaseController;

import java.util.Arrays;

/**
 * @author 为道日损 2020-04-24 15:29
 */
public class AdminBaseController extends BaseController {

    /**
     * 禁止删除的菜单
     */
    final static String[] DONT_DEL_MENUS = {
            "0000",
            "sysRun",
            "roleRun",
            "menuRun",
            "dictRun",
            "userRun",
            "roleAuth",
            "btnConf",
            "sysLogs",
            "user_behavior",
            "user_loginRecord",
            "fileRun",
            "upload_file",
            "myFiles",
            "allFiles"
    };

    boolean superMenu(String menuCode) {
        return Arrays.asList(DONT_DEL_MENUS).contains(menuCode);
    }

}
